<?php
// The file test.xml contains an XML document with a root element
// and at least an element /[root]/title.

if (file_exists('biling_xml.xml')) {
    $xml = simplexml_load_file('biling_xml.xml');
    // $xml = simplexml_load_string($xml);
    //var_dump($xml);
    //jbdump($xml, 0, 'myLoveVariable');
} else {
    exit('Failed to open test.xml.');
}
?>

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
    <script type="text/javascript">
        <!--
        $(document).ready(function () {
            $.ajax({ type: "POST",
                url: "http://localhost/sim2/ajax/podpiska.php",
                data: '<?xml version="1.0" encoding="UTF-8"?><root phone="37282879541" type="ORIG"><imsi>37282879541</imsi><iccid>37282879541</iccid><duration>12</duration><other>79299855639</other><date>2013-04-29 10:36:54+00:00</date><call_id>DBBAFC5F-943C-4C9C-BCF2-09872AE45857</call_id></root>',
                contentType: "text/xml",
                dataType: "xml",
                cache: false,
                error: function () {
                    alert("No data found.");
                },
                success: function (xml) {
                    alert("it works");
                    //alert($(xml).find("project")[0].attr("id"));
                }
            });
        });
        -->
    </script>